package edu.tongji.jiaowu.service.impl;

import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.EvItemDao;
import edu.tongji.jiaowu.service.EvItemManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class EvItemManagerImpl extends BaseManagerImpl implements EvItemManager {
	private EvItemDao evItemDao;

	public CommonBean createEvItem() {
		return evItemDao.createEvItem();
	}

	/*
	 public CommonBean findEvItems(String refid) {
	 return evItemDao.findEvItems(refid);
	 }
	 */
	public CommonBean findEvItemById(String id) {
		return evItemDao.findEvItemById(id);
	}

	public CommonBean findAllEvItems() {
		return evItemDao.findAllEvItems();
	}

	public void insertEvItem(CommonBean evItemBean) {
		evItemDao.insertEvItem(evItemBean);
	}

	public void updateEvItem(CommonBean evItemBean) {
		evItemDao.updateEvItem(evItemBean);
	}

	public CommonBean findEvItemByClass(String year, String semester, String classCode, String courseType) {
		return evItemDao.findEvItemByClass(year,semester,classCode, courseType);
	}

	public EvItemDao getEvItemDao() {
		return evItemDao;
	}

	public void setEvItemDao(EvItemDao evItemDao) {
		this.evItemDao = evItemDao;
	}

}
